package com.zelin.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.zelin.pojo.Classes;
import java.util.List;
import com.zelin.pojo.ClassesExample;
import com.zelin.mapper.ClassesMapper;
import com.zelin.service.ClassesService;
/**
 * Created by WF on 2021/10/19 14:46
 */
@Service
public class ClassesServiceImpl implements ClassesService{

    @Resource
    private ClassesMapper classesMapper;

    @Override
    public long countByExample(ClassesExample example) {
        return classesMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ClassesExample example) {
        return classesMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return classesMapper.deleteByPrimaryKey(cid);
    }

    @Override
    public int insert(Classes record) {
        return classesMapper.insert(record);
    }

    @Override
    public int insertSelective(Classes record) {
        return classesMapper.insertSelective(record);
    }

    @Override
    public List<Classes> selectByExample(ClassesExample example) {
        return classesMapper.selectByExample(example);
    }

    @Override
    public Classes selectByPrimaryKey(Integer cid) {
        return classesMapper.selectByPrimaryKey(cid);
    }

    @Override
    public int updateByExampleSelective(Classes record,ClassesExample example) {
        return classesMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Classes record,ClassesExample example) {
        return classesMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Classes record) {
        return classesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Classes record) {
        return classesMapper.updateByPrimaryKey(record);
    }

}
